﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace WqLunTan.Models.DataBase
{
    /// <summary>
    /// 微信用户关注公众号推送的 openid
    /// </summary>
    [Table("wechat_openid")]
    public class wechat_openid
    {
        /// <summary>
        /// 微信的 openid
        /// </summary>
        [Key]
        [MaxLength(50)]
        public string openid { get; set; }
        
        /// <summary>
        /// 未处理的消息数量
        /// </summary>
        public int ut_message { get; set; }
        /// <summary>
        /// 关注状态, 关注 true, 取关 false
        /// </summary>
        public bool status { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTimeOffset create_time { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTimeOffset last_update { get; set; }
    }
}
